xl: SWITCH_FOREACH_OPT handles special options directly.
authorIan Campbell <Ian.Campbell@citrix.com>
Fri, 25 Jan 2013 08:54:21 +0000 (08:54 +0000)
committerIan Campbell <Ian.Campbell@citrix.com>
Fri, 25 Jan 2013 08:54:21 +0000 (08:54 +0000)
commit9a652ca8d2d9b41f967ee2557d65bd601e113477
tree67dbe3536978ace68fcd0d684ab88385856097f3
parentf4a5a1e1e832a61e64bfffdb841f8c60b3b02463
xl: SWITCH_FOREACH_OPT handles special options directly.

This removes the need for the "case 0: case 2:" boilerplate in every
main_foo(). Calls exit(3) directly which is OK since xl cleans up the
context etc in an atexit(3) handler.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Ian Jackson <ian.jackson@eu.citrix.com>
Committed-by: Ian Campbell <ian.campbell@citrix.com>
tools/libxl/xl_cmdimpl.c